00694da4fd44c8dcdc10dd30433f23b4aab47849,platform/util/src/com/intellij/util/io/IntToIntBtree.java,BtreeIndexNodeView,doOffloadToSiblingsSorted,#BtreeIndexNodeView#,802
Before Change
if (btree.isLarge) {
final int bytesToMove = indexOfLastChildToMove * INTERIOR_SIZE;
getBytes(indexToOffset(toMove), btree.buffer, bytesToMove);
putBytes(indexToOffset(0), btree.buffer, bytesToMove);
}
else {
for (int i = 0; i < indexOfLastChildToMove; ++i) {
After Change
btree.movedMembersCount += indexOfLastChildToMove;
if (btree.isLarge) {
ByteBuffer buffer = getBytes(indexToOffset(toMove), indexOfLastChildToMove * INTERIOR_SIZE);
putBytes(indexToOffset(0), buffer);
}
else {
for (int i = 0; i < indexOfLastChildToMove; ++i) {